<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@page import="GestioneOrdine.Ordine"%>
<%@page import="GestioneComponente.Componente"%>
<%@page import="GestioneComponente.Caratteristiche"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<jsp:useBean id="ordine" scope="session" class="GestioneOrdine.Ordine" />
<jsp:useBean id="assemblaggio" scope="session" class="GestioneAssemblaggio.Assemblaggio" />
<jsp:useBean id="utente" scope="session" class="GestioneUtente.Utente" />
<%

	if(ordine.getIdordine()!=null){
		Ordine.inserisciOrdineDatabase(ordine);
		assemblaggio.getPezziScelti().removeAllElements();
%>
	<input type="hidden" id="error" value="0" />
<% 
	}
	else{
%>
	<input type="hidden" id="error" value="1" />
<%
	}
	
%>
</body>
</html>